

#ifndef __RUNNING_WORK_PROCESS_H
#define __RUNNING_WORK_PROCESS_H

#include <apr_pools.h>
#include <apr_thread_proc.h>
#include "../db/KeyDB.h"

class RunningWorkProcess
{
   public:
      RunningWorkProcess(const char *directorypath, int instancenumber, int totalinstances, apr_pool_t *imp);
      ~RunningWorkProcess();
      int WeAreFinishedYet();
   private:
      char *directory_name;
      apr_pool_t *mp;
      apr_procattr_t *pattr;
      apr_proc_t tproc;
      int finished;
};

#endif
